From: Martin Schiller Date: Tue, 7 Oct 2025 06:05:50 +0000 (+0200) Subject: protocols: l2tp: add option hostname X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22%24PHP_SELF/%22https:/collectd.org/%22%24PHP_SELF?a=commitdiff_plain;h=87375a5cf045ac7891eca474919e9e185c734cc3;p=project%2Fluci.git protocols: l2tp: add option hostname This adds the possibility to set our own L2TP hostname in the advanced tab. It's needed if the peer only allows certain hostnames to connect. Signed-off-by: Martin Schiller --- diff --git a/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js b/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js index e1af7ca1f5..ab72d4ad72 100644 --- a/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js +++ b/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js @@ -57,5 +57,7 @@ return network.registerProtocol('l2tp', { o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU')); o.placeholder = dev ? (dev.getMTU() || '1500') : '1500'; o.datatype = 'max(9200)'; + + o = s.taboption('advanced', form.Value, 'hostname', _('L2TP Hostname')); } });